﻿<Page x:Class="WpfBinding.ErrorBindings"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:CustomControl="clr-namespace:WpfBinding"
      mc:Ignorable="d"  
      d:DesignHeight="363" d:DesignWidth="711"
	Title="ErrorBindings">

    <Grid x:Name="mm">
        <CustomControl:InputNumberBox BorderBrush="Violet" BorderThickness="1" Canvas.Left="32" Canvas.Top="59" 
                                       MaxValue="100" MinValue="1"  Value="12"
                                      Height="25" MouseOverBrush="Yellow" x:Name="inputNumbertbox1" Width="248" />
        <WindowsFormsHost Height="100" HorizontalAlignment="Left" Margin="232,63,0,0" Name="windowsFormsHost1" VerticalAlignment="Top" Width="200" />
        <Popup x:Name="popSetting"     IsOpen="True" StaysOpen="True"    Placement="Top" Width="400" Height="200"   
                      PlacementTarget="{Binding ElementName=inputNumbertbox1}" PopupAnimation="Fade" Margin="151,29,160,134">
            <Grid x:Name="gMenu"  Background="Transparent">
                <Border  x:Name="bContainer"   Focusable="True"   Background="#55000000" VerticalAlignment="Bottom"   HorizontalAlignment="Center"    />
            </Grid>
        </Popup>
    </Grid>
</Page>
